#include"BinaryTree.h"
#include<stdbool.h>

bool IsSameTree(BTNode* rootA, BTNode* rootB)
{
	if (rootA == NULL&&rootB == NULL)
		return true;
	if (rootA == NULL || rootB == NULL)
		return false;
	if (rootA->data != rootB->data)
		return false;
	return IsSameTree(rootA->left, rootB->left) && IsSameTree(rootA->right, rootB->right);
}
